// import validator from '../../index.js';
// 会员设置的表单
export class FeeSettingsVO_Rules { // 会员费用表单的验证规则
  constructor() {
    this.name = [
      {
        required: true,
        message: '费用类型不能为空',
        trigger: 'blur'
      }
    ];
    this.minYear = [
      {
        required: true,
        type: 'number',
        message: '开始年限不能为空',
        trigger: 'change'
      }
    ];
    this.maxYear = [
      {
        required: true,
        type: 'number',
        message: '结束年限不能为空',
        trigger: 'change'
      }
    ];
    this.price = [
      {
        required: true,
        message: '价格不能为空',
        trigger: 'blur'
      }
    ];
  }
}

export class OhterFeeSettingsVO_Rules { // 其他费用表单的验证规则
  constructor() {
    this.name = [
      {
        required: true,
        message: '费用类型不能为空',
        trigger: 'blur'
      }
    ];
    this.price = [
      {
        required: true,
        message: '价格不能为空',
        trigger: 'blur'
      }
    ];
  }
}

export class HotelSettingsVO_Rules { // 食宿表单的验证规则
  constructor() {
    this.imageUrl = [
      {
        required: true,
        message: '酒店图片不能为空',
        trigger: 'change'
      }
    ];
    this.name = [
      {
        required: true,
        message: '酒店名称不能为空',
        trigger: 'blur'
      }
    ];
    this.address = [
      {
        required: true,
        type: 'string',
        message: '酒店地址不能为空',
        trigger: 'change'
      }
    ];
    this.roomType = [
      {
        required: true,
        type: 'string',
        message: '房型不能为空',
        trigger: 'change'
      }
    ];
    this.price = [
      {
        required: true,
        message: '价格不能为空',
        trigger: 'blur'
      }
    ];
    this.startTime = [
      {
        required: true,
        message: '入住时间不能为空',
        trigger: 'blur'
      }
    ];
    this.endTime = [
      {
        required: true,
        message: '离店时间不能为空',
        trigger: 'blur'
      }
    ];
    this.roomCount = [
      {
        required: true,
        type: 'number',
        message: '酒店数量不能为空',
        trigger: 'blur'
      }
    ];
  }
}

